<?=$this->load->view('include_header',null)?>
<style type="text/css">
form#form textarea {
    height: 50px;
    overflow: auto;
    padding: 5px;
    width: 410px;
}
</style>
	<div id="top-panel">
		<div id="panel">
			<ul>
				<li class="current"><a href="<?=site_url('archive/idcard/'.$id)?>" class="report"><?=(empty($id))?"录入新":"编辑"?>客户基本信息</a></li>
				<?php if(!empty($info->id)):?><li><a id="printInfo" class="folder_table">打印本页信息</a></li><?php endif;?>
			</ul>
		</div>
	</div>
	<div id="wrapper">
		<div id="content">
			<div id="box">
<!-- table begin -->
<form method="post" id="form"  enctype="multipart/form-data" action="<?=site_url('schengen/uk_business_update/'.$cateid)?>">

	<h3>英国商务访问签证[VAF1C]</h3>
    <table width="100%">
    <thead>
        <tr>
          <td colspan="3" align="right"><img src="<?= (@$info->avatar)?@$info->avatar:'images/avatar.gif'?>" width="150" height="150" /></td>
		  <td colspan="2" align="right">
		  上传照片<br />
		  <input type="file" name="userphoto"/><br />
		  (.gif|.jpg|.png文件,最大1M)<br />
		  <?php if (@$info->attachment):?><a href="<?= @$info->attachment?>" target="_blank">点击下载附件</a><?php endif; ?>
		  &nbsp;&nbsp;&nbsp;&nbsp;上传附件<br />
		  <input type="file" name="userfile"/><br />
		  (.pdf|.zip|.rar|.doc,最大2M)		  </td>
        </tr>
    </thead>
    <tfoot>
        <tr>
            <td colspan="5" align="right">			
			<input type="hidden" name="id" value="<?=$id?>" />
			<input id="button1" type="submit" value="提交信息" />
			<input id="button2" type="reset" value="重置" />			</td>
        </tr>
    </tfoot>

    <tbody>
		<tr class="odd">
            <td colspan="5">How long do you want your visa to be valid for?</td>
        	</tr>
        <tr class="even">
            <td colspan="5">
			<input type="radio" name="visa_type" value="1" <?= (@$info->visa_type==1)?'checked':''?> />Business Visitor &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;</td>
        </tr>
		<tr class="odd">
             <td>&nbsp;</td>
        	<td colspan="4">
			<input type="radio" name="visa_valid" value="1" <?= (@$info->visa_valid==1)?'checked':''?> />6 months 
			<input type="radio" name="visa_valid" value="2" <?= (@$info->visa_valid==2)?'checked':''?> />1 year 
			<input type="radio" name="visa_valid" value="3" <?= (@$info->visa_valid==3)?'checked':''?> />2 years 
			<input type="radio" name="visa_valid" value="4" <?= (@$info->visa_valid==4)?'checked':''?> />5 years 
			<input type="radio" name="visa_valid" value="5" <?= (@$info->visa_valid==5)?'checked':''?> />10 years</td>
        	</tr>
        <tr class="even">
            <td colspan="5"><input type="radio" name="visa_type" value="2" <?= (@$info->visa_type==2)?'checked':''?> />Prospective Entrepreneur – 6 months &gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;</td>
        	</tr>
		<tr class="odd">
            <td>What is the main purpose of your visit to the UK?</td>
        	<td><input type="text" name="purpose" value="<?= @$info->purpose?>"/></td>
        	<td>&nbsp;</td>
        	<td>How long do you intend to stay in the UK?</td>
			<td><input type="text" name="stays" value="<?= @$info->stays?>"/></td>
        </tr>
        <tr class="even">
            <td>On which date do you wish to travel to the UK?</td>
        	<td nowrap="nowrap"><input type="text" name="visit_from" id="visit_from" value="<?= @$info->visit_from?>"/></td>
        	<td>&nbsp;</td>
        	<td>On which date will you leave the UK?</td>
			<td nowrap="nowrap"><input type="text" name="visit_to" id="visit_to" value="<?= @$info->visit_to?>"/></td>
        </tr>
		<tr class="odd">
            <td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
        <tr class="even">
            <td colspan="5"><strong>Part 1 About You  </strong></td>
        	</tr>
		<tr class="odd">
            <td>1.1 Given name(s)</td>
        	<td><input type="text" name="firstname" value="<?= @$info->firstname?>"/></td>
        	<td>&nbsp;</td>
        	<td>1.2 Family name</td>
			<td><input type="text" name="surname" value="<?= @$info->surname?>"/></td>
        </tr>
        <tr class="even">
            <td>1.3 Other names</td>
        	<td><input type="text" name="alias" value="<?= @$info->alias?>"/></td>
        	<td>&nbsp;</td>
        	<td>1.4 Sex</td>
			<td><input type="radio" name="sex" value="1" <?= (@$info->sex==1)?'checked':''?> />Male 
        	<input type="radio" name="sex" value="2" <?= (@$info->sex==2)?'checked':''?> />Female</td>
        </tr>
		<tr class="odd">
            <td>1.5 Marital status?</td>
        	<td colspan="4">
			<input type="radio" name="marital_status" value="1" <?= (@$info->marital_status==1)?'checked':''?> />Single 
			<input type="radio" name="marital_status" value="2" <?= (@$info->marital_status==2)?'checked':''?> />Married/ Civil Partner 
			<input type="radio" name="marital_status" value="3" <?= (@$info->marital_status==3)?'checked':''?> />Unmarried Partner<br />
        	<input type="radio" name="marital_status" value="4" <?= (@$info->marital_status==4)?'checked':''?> />Divorced/Dissolved Partnership 
			<input type="radio" name="marital_status" value="5" <?= (@$info->marital_status==5)?'checked':''?> />Separated 
			<input type="radio" name="marital_status" value="6" <?= (@$info->marital_status==6)?'checked':''?> />Widowed/Surviving Civil Partner</td>
        	</tr>
        <tr class="even">
            <td>1.6 Date of Birth</td>
        	<td><input type="text" name="birth" id="birth" value="<?= @$info->birth?>"/></td>
        	<td>&nbsp;</td>
        	<td>1.7 Place of Birth</td>
			<td><input type="text" name="birth_place" value="<?= @$info->birth_place?>"/></td>
        </tr>
		<tr class="odd">
            <td>1.8 Country of Birth</td>
        	<td><input type="text" name="birth_country" value="<?= @$info->birth_country?>"/></td>
        	<td>&nbsp;</td>
        	<td>1.9 Nationality</td>
			<td><input type="text" name="nationality" value="<?= @$info->nationality?>"/></td>
        </tr>
        <tr class="even">
            <td colspan="5">1.10 Do you hold, or have you ever held, any other nationality or nationalities?</td>
        	</tr>
		<tr class="odd">
            <td colspan="5">
			<input type="radio" name="has_other_nationality" value="1" <?= (@$info->has_other_nationality==1)?'checked':''?> />Yes 
			<input type="radio" name="has_other_nationality" value="0" <?= (@$info->has_other_nationality==0)?'checked':''?> />No If ‘Yes’ please provide details
			<input type="text" name="other_nationality" value="<?= @$info->other_nationality?>"/></td>
        	</tr>
        <tr class="even">
            <td colspan="5">&nbsp;</td>
        	</tr>
		<tr class="odd">
            <td colspan="5"><strong>Part 2 Passport Information </strong></td>
        	</tr>
        <tr class="even">
            <td>2.1 Current passport or travel document number</td>
        	<td><input type="text" name="passport_no" value="<?= @$info->passport_no?>"/></td>
        	<td>&nbsp;</td>
        	<td>2.2 Place of Issue</td>
			<td><input type="text" name="passport_place" value="<?= @$info->passport_place?>"/></td>
        </tr>
		<tr class="odd">
            <td>2.3 Issuing Authority</td>
        	<td><input type="text" name="passport_authority" value="<?= @$info->passport_authority?>"/></td>
        	<td>&nbsp;</td>
        	<td>2.4 Date of Issue</td>
			<td><input type="text" name="passport_issue" id="passport_issue" value="<?= @$info->passport_issue?>"/></td>
        </tr>
        <tr class="even">
            <td>2.5 Date of Expiry</td>
        	<td><input type="text" name="passport_expiry" id="passport_expiry" value="<?= @$info->passport_expiry?>"/></td>
        	<td>&nbsp;</td>
        	<td>2.6 Is this your first passport?</td>
			<td>
			<input type="radio" name="is_first_passport" value="1" <?= (@$info->is_first_passport==1)?'checked':''?> />Yes 
			<input type="radio" name="is_first_passport" value="0" <?= (@$info->is_first_passport==0)?'checked':''?> />No If ‘Yes’ go to Part 3</td>
        </tr>
		<tr class="odd">
            <td colspan="5">2.7 Please give details of any previous passports, covering the last 10 years, including where these passports are now.</td>
        	</tr>
        <tr class="even">
            <td colspan="5"><textarea name="passport_detail"><?= @$info->passport_detail?></textarea></td>
        	</tr>
		<tr class="odd">
            <td colspan="5">&nbsp;</td>
        	</tr>
        <tr class="even">
            <td colspan="5"><strong>Part 3 Your Contact Details</strong></td>
        	</tr>
		<tr class="odd">
            <td colspan="2">3.1 Your full residential address and postal code</td>
        	<td colspan="3"><input type="text" name="address" value="<?= @$info->address?>" style="width:300px"/></td>
        	</tr>
        <tr class="even">
            <td>3.2 How long have you lived at this address?</td>
        	<td><input type="text" name="lived" value="<?= @$info->lived?>"/></td>
        	<td>&nbsp;</td>
        	<td>3.3 Home (landline) telephone number</td>
			<td><input type="text" name="tel" value="<?= @$info->tel?>"/></td>
        </tr>
		<tr class="odd">
            <td>3.4 Your mobile telephone number</td>
        	<td><input type="text" name="mobile" value="<?= @$info->mobile?>"/></td>
        	<td>&nbsp;</td>
        	<td>3.5 Email address</td>
			<td><input type="text" name="email" value="<?= @$info->email?>" id="email"/></td>
        </tr>
        <tr class="even">
            <td colspan="2">3.6 Contact details if different from those given in question 3.1</td>
        	<td colspan="3"><input type="text" name="contact_address" value="<?= @$info->contact_address?>" style="width:300px"/></td>
        	</tr>
		<tr class="odd">
            <td colspan="5">&nbsp;</td>
        	</tr>
        <tr class="even">
            <td colspan="5"><strong>Part 4 Your Family</strong></td>
        	</tr>
		<tr class="odd">
            <td>4.1 Father’s given name(s)</td>
        	<td><input type="text" name="father_given" value="<?= @$info->father_given?>"/></td>
        	<td>&nbsp;</td>
        	<td>4.2 Father’s family name</td>
			<td><input type="text" name="father_family" value="<?= @$info->father_family?>"/></td>
        </tr>
        <tr class="even">
            <td>4.3 Father’s date of birth</td>
        	<td><input type="text" name="father_birth" id="father_birth" value="<?= @$info->father_birth?>"/></td>
        	<td>&nbsp;</td>
        	<td>4.4 Father’s place and country of birth</td>
			<td><input type="text" name="father_birth_place" value="<?= @$info->father_birth_place?>"/></td>
        </tr>
		<tr class="odd">
            <td>4.5 Father’s nationality/nationalities</td>
        	<td><input type="text" name="father_nationality" value="<?= @$info->father_nationality?>"/></td>
        	<td>&nbsp;</td>
        	<td>4.6 Mother’s given name(s)</td>
			<td><input type="text" name="mother_given" value="<?= @$info->mother_given?>"/></td>
        </tr>
        <tr class="even">
            <td>4.7 Mother’s family name</td>
        	<td><input type="text" name="mother_family" value="<?= @$info->mother_family?>"/></td>
        	<td>&nbsp;</td>
        	<td>4.8 Mother’s date of birth</td>
			<td><input type="text" name="mother_birth" id="mother_birth" value="<?= @$info->mother_birth?>"/></td>
        </tr>
		<tr class="odd">
            <td>4.9 Mother’s nationality/nationalities</td>
        	<td><input type="text" name="mother_nationality" value="<?= @$info->mother_nationality?>"/></td>
        	<td>&nbsp;</td>
        	<td>4.10 Mother’s place and country of birth</td>
			<td><input type="text" name="mother_birth_place" value="<?= @$info->mother_birth_place?>"/></td>
        </tr>
        <tr class="even">
            <td>4.11 Full name of spouse/partner (If single go to 4.16)</td>
        	<td><input type="text" name="spouse_name" value="<?= @$info->spouse_name?>"/></td>
        	<td>&nbsp;</td>
        	<td>4.12 Spouse/partner’s nationality/nationalities</td>
			<td><input type="text" name="spouse_nationality" value="<?= @$info->spouse_nationality?>"/></td>
        </tr>
		<tr class="odd">
            <td>4.13 Spouse/partner’s date of birth</td>
        	<td><input type="text" name="spouse_birth" id="spouse_birth" value="<?= @$info->spouse_birth?>"/></td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
        <tr class="even">
            <td colspan="5">4.14 Does your spouse/partner currently live with you at the  address given in Question 3.1?</td>
        	</tr>
		<tr class="odd">
            <td colspan="5">
			<input type="radio" name="is_spouse_live" value="1" <?= (@$info->is_spouse_live==1)?'checked':''?> />Yes 
			<input type="radio" name="is_spouse_live" value="0" <?= (@$info->is_spouse_live==0)?'checked':''?> />No If ‘No’, please provide full details
			<input type="text" name="spouse_live" value="<?= @$info->spouse_live?>"/></td>
        	</tr>
        <tr class="even">
            <td>4.15 Will your spouse/partner be travelling with you?</td>
        	<td>
			<input type="radio" name="is_spouse_travel" value="1" <?= (@$info->is_spouse_travel==1)?'checked':''?> />Yes 
			<input type="radio" name="is_spouse_travel" value="0" <?= (@$info->is_spouse_travel==0)?'checked':''?> />No</td>
        	<td>&nbsp;</td>
        	<td>4.16 Do you have any children?</td>
			<td>
			<input type="radio" name="has_child" value="1" <?= (@$info->has_child==1)?'checked':''?> />Yes 
			<input type="radio" name="has_child" value="0" <?= (@$info->has_child==0)?'checked':''?> />No If ‘No’, please go to question 4.20</td>
        </tr>
		<tr class="odd">
            <td colspan="5">4.17 Please provide full details for each of your  dependant children(<em>Name Date of Birth</em>)</td>
        	</tr>
        <tr class="even">
            <td colspan="5"><textarea name="child_detail"><?= @$info->child_detail?></textarea></td>
        	</tr>
		<tr class="odd">
            <td colspan="5">4.18 Do all your children currently live with you at the address given in Question 3.1?</td>
        	</tr>
        <tr class="even">
            <td colspan="5">
			<input type="radio" name="is_child_live" value="1" <?= (@$info->is_child_live==1)?'checked':''?> />Yes 
			<input type="radio" name="is_child_live" value="0" <?= (@$info->is_child_live==0)?'checked':''?> />No If ‘No’, please provide full details
			<input type="text" name="child_live" value="<?= @$info->child_live?>"/></td>
        	</tr>
		<tr class="odd">
            <td colspan="5">4.19 Please list any of your children who will be travelling with you to the UK?</td>
        	</tr>
        <tr class="even">
            <td colspan="5"><textarea name="child_travel"><?= @$info->child_travel?></textarea></td>
        	</tr>
		<tr class="odd">
            <td colspan="2">4.20 Will any other children be travelling with you?</td>
        	<td colspan="3">
			<input type="radio" name="is_child_travel" value="1" <?= (@$info->is_child_travel==1)?'checked':''?> />Yes If ‘Yes’ go to 4.21  
			<input type="radio" name="is_child_travel" value="0" <?= (@$info->is_child_travel==0)?'checked':''?> />No If ‘No’ go to Part 5.</td>
        	</tr>
        <tr class="even">
            <td colspan="5">4.21 If yes please provide full details about the child/children(<em>Full Name, Date of Birth, Passport Number, Address, Place of Birth, Nationality, Your Relationship to Child, Your Relationship to their Parents</em>)</td>
        	</tr>
		<tr class="odd">
            <td colspan="5"><textarea name="child_travel_detail"><?= @$info->child_travel_detail?></textarea></td>
        	</tr>
        <tr class="even">
            <td colspan="5">&nbsp;</td>
        	</tr>
		<tr class="odd">
            <td colspan="5"><strong>Part 5 Finances and Employment</strong></td>
        	</tr>
        <tr class="even">
            <td colspan="5">TO BE COMPLETED BY ALL APPLICANTS - Dependent children should enter parents’ details.</td>
        	</tr>
		<tr class="odd">
            <td colspan="5">5.1 What are your current personal circumstances?</td>
        	</tr>
        <tr class="even">
            <td colspan="5">
				<input type="radio" name="employ_type" value="1" <?= (@$info->employ_type==1)?'checked':''?> />
				Employed full time, please go to 5.2<br />
				<input type="radio" name="employ_type" value="2" <?= (@$info->employ_type==2)?'checked':''?> />
            	Employed part-time, please go to 5.2<br />
				<input type="radio" name="employ_type" value="3" <?= (@$info->employ_type==3)?'checked':''?> />
            	Self-employed, please go to 5.2<br />
				<input type="radio" name="employ_type" value="4" <?= (@$info->employ_type==4)?'checked':''?> />
            	Unemployed, please go to 5.9<br />
				<input type="radio" name="employ_type" value="5" <?= (@$info->employ_type==5)?'checked':''?> />
            	Student, please give details of the course and institution you attend in the box provided; then go to 5.2<br />
				<input type="radio" name="employ_type" value="6" <?= (@$info->employ_type==6)?'checked':''?> />
            	Retired, please go to 5.9<br />
				<input type="radio" name="employ_type" value="7" <?= (@$info->employ_type==7)?'checked':''?> />
            	Supported by spouse / partner / other family member, please give full details in the box, including their relationship to you; then go to 5.9<br />
				<input type="radio" name="employ_type" value="8" <?= (@$info->employ_type==8)?'checked':''?> />
            	Other, please give details, then go to 5.2
            	<input type="text" name="employ_type_other" value="<?= @$info->employ_type_other?>"/></td>
        	</tr>
		<tr class="odd">
            <td colspan="5">Employment</td>
        	</tr>
        <tr class="even">
            <td>5.2 What is your present work or job or occupation? If you are a student and you also work, please give details of your work. If you are a student and you do not also work, please go to 5.9.</td>
        	<td colspan="4"><textarea name="work_detail"><?= @$info->work_detail?></textarea></td>
        	</tr>
		<tr class="odd">
            <td>5.3 What is the name of the company or organisation you  work for?</td>
        	<td colspan="4"><input type="text" name="work_name" value="<?= @$info->work_name?>" style="width:500px"/></td>
        	</tr>
        <tr class="even">
            <td>5.4 When did you start this job?</td>
        	<td><input type="text" name="work_date" id="work_date" value="<?= @$info->work_date?>"/></td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
		<tr class="odd">
            <td>5.5 What is your work address?</td>
        	<td colspan="4"><input type="text" name="work_address" value="<?= @$info->work_address?>" style="width:500px"/></td>
        	</tr>
        <tr class="even">
            <td>5.6 What are your employer’s telephone numbers?</td>
        	<td><input type="text" name="work_tel" value="<?= @$info->work_tel?>"/></td>
        	<td>&nbsp;</td>
        	<td>5.7 What is your employer’s email address?</td>
			<td><input type="text" name="work_email" value="<?= @$info->work_email?>" id="work_email"/></td>
        </tr>
		<tr class="odd">
            <td>5.8 Please give details of any additional job(s) or occupation(s) you have</td>
        	<td colspan="4"><input type="text" name="work_other_detail" value="<?= @$info->work_other_detail?>" style="width:500px"/></td>
        	</tr>
        <tr class="even">
            <td colspan="5">5.9 Have you ever worked for any organisation of a type (state or non-state) listed below?</td>
        	</tr>
		<tr class="odd">
            <td colspan="5">				
				Armed forces (including national service) 
				<input type="radio" name="is_work_type1" value="1" <?= (@$info->is_work_type1==1)?'checked':''?> />Yes
				<input type="radio" name="is_work_type1" value="0" <?= (@$info->is_work_type1==0)?'checked':''?> />No<br />
            	Government (central or local) 
				<input type="radio" name="is_work_type2" value="1" <?= (@$info->is_work_type2==1)?'checked':''?> />Yes
				<input type="radio" name="is_work_type2" value="0" <?= (@$info->is_work_type2==0)?'checked':''?> />No<br />
            	Judiciary
				<input type="radio" name="is_work_type3" value="1" <?= (@$info->is_work_type3==1)?'checked':''?> />Yes
				<input type="radio" name="is_work_type3" value="0" <?= (@$info->is_work_type3==0)?'checked':''?> />No<br />
            	Media
				<input type="radio" name="is_work_type4" value="1" <?= (@$info->is_work_type4==1)?'checked':''?> />Yes
				<input type="radio" name="is_work_type4" value="0" <?= (@$info->is_work_type4==0)?'checked':''?> />No<br />
            	Public or civil administration
				<input type="radio" name="is_work_type5" value="1" <?= (@$info->is_work_type5==1)?'checked':''?> />Yes
				<input type="radio" name="is_work_type5" value="0" <?= (@$info->is_work_type5==0)?'checked':''?> />No<br />
            	Security (including police and private security companies)
				<input type="radio" name="is_work_type6" value="1" <?= (@$info->is_work_type6==1)?'checked':''?> />Yes
				<input type="radio" name="is_work_type6" value="0" <?= (@$info->is_work_type6==0)?'checked':''?> />No</td>
        	</tr>
        <tr class="even">
            <td colspan="5">Income and Expenditure</td>
        	</tr>
		<tr class="odd">
            <td>5.10 What is your total monthly income from all sources of employment or occupation after tax?</td>
        	<td colspan="4"><input type="text" name="income" value="<?= @$info->income?>"/></td>
        	</tr>
        <tr class="even">
            <td>5.11 Do you receive income from any other sources, including friends or family?</td>
        	<td colspan="4">
			<input type="radio" name="is_other_income" value="1" <?= (@$info->is_other_income==1)?'checked':''?> />Yes 
			<input type="radio" name="is_other_income" value="0" <?= (@$info->is_other_income==0)?'checked':''?> />No If ‘Yes’ please provide details
			<input type="text" name="other_income" value="<?= @$info->other_income?>"/></td>
        	</tr>
		<tr class="odd">
            <td>5.12 Do you have savings, property or other income (for example from stocks and shares)?</td>
        	<td colspan="4">
			<input type="radio" name="is_savings_income" value="1" <?= (@$info->is_savings_income==1)?'checked':''?> />Yes 
			<input type="radio" name="is_savings_income" value="0" <?= (@$info->is_savings_income==0)?'checked':''?> />No If ‘Yes’ please provide details
			<input type="text" name="savings_income" value="<?= @$info->savings_income?>"/></td>
        	</tr>
        <tr class="even">
            <td>5.13 How much of your total monthly income is given to your family members and other dependants?</td>
        	<td><input type="text" name="income_give" value="<?= @$info->income_give?>"/></td>
        	<td>&nbsp;</td>
        	<td>5.14 How much do you spend each month on living costs?</td>
			<td><input type="text" name="income_cost" value="<?= @$info->income_cost?>"/></td>
        </tr>
		<tr class="odd">
            <td>5.15 What money is available to you for your trip? </td>
        	<td><input type="text" name="income_trip" value="<?= @$info->income_trip?>"/></td>
        	<td>&nbsp;</td>
        	<td>5.16 Who will pay for your travel to the UK?</td>
			<td><input type="text" name="income_pay" value="<?= @$info->income_pay?>"/></td>
        </tr>
        <tr class="even">
            <td>5.17 Who will pay for your expenses such as accommodation and food?</td>
        	<td><input type="text" name="income_expense" value="<?= @$info->income_expense?>"/></td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
		<tr class="odd">
            <td>5.18 If someone other than yourself is paying for all or  any part of this visit, how much money will they give you? Please also explain why they are paying for all or part of your visit</td>
        	<td colspan="4"><textarea name="trip_other_pay"><?= @$info->trip_other_pay?></textarea></td>
        	</tr>
        <tr class="even">
            <td>5.19 What is the cost to you personally of your stay in  the UK?</td>
        	<td><input type="text" name="trip_cost" value="<?= @$info->trip_cost?>"/></td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
		<tr class="odd">
            <td colspan="5">&nbsp;</td>
        	</tr>
        <tr class="even">
            <td colspan="5"><strong>Part 6 Previous Applications And Travel History</strong></td>
        	</tr>
		<tr class="odd">
            <td>6.1 Have you travelled to the UK in the last 10 years?</td>
        	<td colspan="4" rowspan="2"><em>Date Destination Purpose Duration
        		</em>
        		<textarea name="travel_uk"><?= @$info->travel_uk?></textarea></td>
        	</tr>
        <tr class="even">
            <td>
			<input type="radio" name="is_travel_uk" value="1" <?= (@$info->is_travel_uk==1)?'checked':''?> />Yes 
			<input type="radio" name="is_travel_uk" value="0" <?= (@$info->is_travel_uk==0)?'checked':''?> />No If ‘Yes’ please provide details of any trips to the UK</td>
        	</tr>
		<tr class="odd">
            <td>6.2 Have you travelled outside your country of residence, excluding to the UK, in the last 10 years?</td>
        	<td colspan="4" rowspan="2"><em>Date Destination Purpose Duration </em>
				<textarea name="travel_outside"><?= @$info->travel_outside?></textarea></td>
        	</tr>
        <tr class="even">
            <td>
			<input type="radio" name="is_travel_outside" value="1" <?= (@$info->is_travel_outside==1)?'checked':''?> />Yes 
			<input type="radio" name="is_travel_outside" value="0" <?= (@$info->is_travel_outside==0)?'checked':''?> />No If ‘Yes’ please provide details of these trips</td>
        	</tr>
		<tr class="odd">
            <td>6.3 Have you ever been refused a visa for any country, including the UK?</td>
        	<td colspan="4" rowspan="2"><em>Date Country Reason Reference number (for UK) </em>
				<textarea name="travel_refused"><?= @$info->travel_refused?></textarea></td>
        	</tr>
        <tr class="even">
            <td>
			<input type="radio" name="is_travel_refused" value="1" <?= (@$info->is_travel_refused==1)?'checked':''?> />Yes 
			<input type="radio" name="is_travel_refused" value="0" <?= (@$info->is_travel_refused==0)?'checked':''?> />No If ‘Yes’ please provide full details</td>
        	</tr>
		<tr class="odd">
            <td>6.4 Have you been granted any UK visas in the last 10 years?</td>
        	<td colspan="4" rowspan="2"><em>Date Purpose Duration Reference number </em>
				<textarea name="travel_granted"><?= @$info->travel_granted?></textarea></td>
        	</tr>
        <tr class="even">
            <td>
			<input type="radio" name="is_travel_granted" value="1" <?= (@$info->is_travel_granted==1)?'checked':''?> />Yes 
			<input type="radio" name="is_travel_granted" value="0" <?= (@$info->is_travel_granted==0)?'checked':''?> />No If ‘Yes’ please provide details</td>
        	</tr>
		<tr class="odd">
            <td>6.5 Have you been refused entry on arrival to the UK in the  last 10 years?</td>
        	<td colspan="4" rowspan="2"><em>Date Reason Reference number </em>
				<textarea name="travel_refused_entry"><?= @$info->travel_refused_entry?></textarea></td>
        	</tr>
        <tr class="even">
            <td>
			<input type="radio" name="is_travel_refused_entry" value="1" <?= (@$info->is_travel_refused_entry==1)?'checked':''?> />Yes 
			<input type="radio" name="is_travel_refused_entry" value="0" <?= (@$info->is_travel_refused_entry==0)?'checked':''?> />No If ‘Yes’ please provide details</td>
        	</tr>
		<tr class="odd">
            <td>6.6 Have you ever been deported, removed or otherwise required to leave any country, including the UK in the last 10 years?</td>
        	<td colspan="4" rowspan="2"><em>Date Country Reason Reference number (for UK) </em>
				<textarea name="travel_deported"><?= @$info->travel_deported?></textarea></td>
        	</tr>
        <tr class="even">
            <td>
			<input type="radio" name="is_travel_deported" value="1" <?= (@$info->is_travel_deported==1)?'checked':''?> />Yes 
			<input type="radio" name="is_travel_deported" value="0" <?= (@$info->is_travel_deported==0)?'checked':''?> />No If ‘Yes’ please provide details</td>
        	</tr>
		<tr class="odd">
            <td>6.7 Have you made an application to the Home Office to  remain in the UK in the last 10 years?</td>
        	<td colspan="4" rowspan="2"><em>Date Reason for Application Granted/Refused(
If refused give reason Reference number) </em>
				<textarea name="travel_office"><?= @$info->travel_office?></textarea></td>
        	</tr>
        <tr class="even">
            <td>
			<input type="radio" name="is_travel_office" value="1" <?= (@$info->is_travel_office==1)?'checked':''?> />Yes 
			<input type="radio" name="is_travel_office" value="0" <?= (@$info->is_travel_office==0)?'checked':''?> />No If ‘Yes’ please provide details</td>
        	</tr>
		<tr class="odd">
            <td>6.8 Do you have a UK National Insurance number?</td>
        	<td colspan="4" rowspan="2">National Insurance number
        		<input type="text" name="travel_insurance_no" value="<?= @$info->travel_insurance_no?>"/>
        		<br />
        		<textarea name="travel_insurance_detail"><?= @$info->travel_insurance_detail?></textarea></td>
        	</tr>
        <tr class="even">
            <td>
			<input type="radio" name="is_travel_insurance" value="1" <?= (@$info->is_travel_insurance==1)?'checked':''?> />Yes 
			<input type="radio" name="is_travel_insurance" value="0" <?= (@$info->is_travel_insurance==0)?'checked':''?> />No If ‘Yes’ please provide details</td>
        	</tr>
		<tr class="odd">
            <td>6.9 Do you have any criminal convictions in any country (including traffic offences)?</td>
        	<td colspan="4" rowspan="2"><em>Date Country Offence Sentence</em>
				<textarea name="travel_criminal"><?= @$info->travel_criminal?></textarea></td>
        	</tr>
        <tr class="even">
            <td>
			<input type="radio" name="is_travel_criminal" value="1" <?= (@$info->is_travel_criminal==1)?'checked':''?> />Yes 
			<input type="radio" name="is_travel_criminal" value="0" <?= (@$info->is_travel_criminal==0)?'checked':''?> />No If ‘Yes’ please provide details</td>
        	</tr>
		<tr class="odd">
            <td>6.10 Have you ever been charged in any country with a criminal offence for which you have not yet been tried in court (including traffic offences)?</td>
        	<td colspan="4" rowspan="2"><em>Date Country Offence</em><br />
				<textarea name="travel_offence"><?= @$info->travel_offence?></textarea></td>
        	</tr>
        <tr class="even">
            <td>
			<input type="radio" name="is_travel_offence" value="1" <?= (@$info->is_travel_offence==1)?'checked':''?> />Yes 
			<input type="radio" name="is_travel_offence" value="0" <?= (@$info->is_travel_offence==0)?'checked':''?> />No If ‘Yes’ please provide details</td>
        	</tr>
		<tr class="odd">
            <td colspan="3">6.11 In times of either peace or war have you ever been  involved in, or suspected of involvement in, war crimes, crimes against humanity or genocide?</td>
        	<td colspan="2">
			<input type="radio" name="is_travel_peace" value="1" <?= (@$info->is_travel_peace==1)?'checked':''?> />Yes 
			<input type="radio" name="is_travel_peace" value="0" <?= (@$info->is_travel_peace==0)?'checked':''?> />No If ‘Yes’ please provide details in Part 9,<br />
        		Additional Information</td>
			</tr>
        <tr class="even">
            <td colspan="3">6.12 Have you ever been involved in, supported, or  encouraged terrorist activities in any country? Have you, ever been a member of, or given support to an organisation that has been concerned in terrorism?</td>
        	<td colspan="2">
			<input type="radio" name="is_travel_terrorist" value="1" <?= (@$info->is_travel_terrorist==1)?'checked':''?> />Yes 
			<input type="radio" name="is_travel_terrorist" value="0" <?= (@$info->is_travel_terrorist==0)?'checked':''?> />No If ‘Yes’ please provide details in Part 9,<br />
Additional Information</td>
			</tr>
		<tr class="odd">
            <td colspan="3">6.13 Have you ever, by any means or medium, expressed  views that justify or glorify terrorist violence or that may encourage others to terrorist acts or other serious criminal acts?</td>
        	<td colspan="2">
			<input type="radio" name="is_travel_acts" value="1" <?= (@$info->is_travel_acts==1)?'checked':''?> />Yes 
			<input type="radio" name="is_travel_acts" value="0" <?= (@$info->is_travel_acts==0)?'checked':''?> />No If ‘Yes’ please provide details in Part 9,<br />
Additional Information</td>
			</tr>
        <tr class="even">
            <td colspan="3">6.14 Have you engaged in any other activities that might  indicate that you may not be considered a person of good character?</td>
        	<td colspan="2">
			<input type="radio" name="is_travel_character" value="1" <?= (@$info->is_travel_character==1)?'checked':''?> />Yes 
			<input type="radio" name="is_travel_character" value="0" <?= (@$info->is_travel_character==0)?'checked':''?> />No If ‘Yes’ please provide details in Part 9,<br />
Additional Information</td>
			</tr>
		<tr class="odd">
            <td colspan="5">&nbsp;</td>
        	</tr>
        <tr class="even">
            <td colspan="5">&nbsp;</td>
        	</tr>
		<tr class="odd">
            <td colspan="5"><strong>Part 7 Visit Information</strong></td>
        	</tr>
        <tr class="even">
            <td colspan="5">7.1 If you are not a national of the country in which you are applying, what permission do you have to stay in that country?</td>
        	</tr>
		<tr class="odd">
            <td colspan="5"><input type="text" name="visit_stay_permission" value="<?= @$info->visit_stay_permission?>" style="width:500px"/></td>
        	</tr>
        <tr class="even">
            <td>7.2 Are you travelling with anyone?</td>
        	<td colspan="4" rowspan="2"><em>Full Name Date of Birth Nationality</em>
        		<textarea name="visit_with"><?= @$info->visit_with?></textarea></td>
        	</tr>
		<tr class="odd">
            <td>
			<input type="radio" name="is_visit_with" value="1" <?= (@$info->is_visit_with==1)?'checked':''?> />Yes 
			<input type="radio" name="is_visit_with" value="0" <?= (@$info->is_visit_with==0)?'checked':''?> />No If ‘Yes’ please provide details of the people you are travelling with. If ‘No’, go to question 7.4</td>
        	</tr>
        <tr class="even">
            <td>7.3 Do they already have a visa for the UK?</td>
        	<td>
			<input type="radio" name="is_visit_have" value="1" <?= (@$info->is_visit_have==1)?'checked':''?> />Yes 
			<input type="radio" name="is_visit_have" value="2" <?= (@$info->is_visit_have==2)?'checked':''?> />No 
			<input type="radio" name="is_visit_have" value="3" <?= (@$info->is_visit_have==3)?'checked':''?> />They don’t need one</td>
        	<td>&nbsp;</td>
        	<td>7.4 What is the purpose of your visit to the UK?</td>
			<td><input type="text" name="visit_purpose" value="<?= @$info->visit_purpose?>"/></td>
        </tr>
		<tr class="odd">
             <td>7.5 Who invited you to the UK?</td>
        	<td><input type="text" name="visit_inviter" value="<?= @$info->visit_inviter?>"/></td>
        	<td>&nbsp;</td>
        	<td>7.6 What is the name of the Business or Organisation you will visit in the UK?</td>
			<td><input type="text" name="visit_inviter_name" value="<?= @$info->visit_inviter_name?>"/></td>
        </tr>
        <tr class="even">
            <td colspan="2">7.7 What does the Business or Organisation do in the UK?</td>
        	<td colspan="3"><input type="text" name="visit_inviter_do" value="<?= @$info->visit_inviter_do?>" style="width:250px"/></td>
        	</tr>
		<tr class="odd">
             <td colspan="2">7.8 Business or Organisation address including postal code in the UK</td>
        	<td colspan="3"><input type="text" name="visit_inviter_address" value="<?= @$info->visit_inviter_address?>" style="width:250px"/></td>
        	</tr>
        <tr class="even">
            <td>7.9 Business or Organisation landline telephone number in the UK</td>
        	<td><input type="text" name="visit_inviter_tel" value="<?= @$info->visit_inviter_tel?>"/></td>
        	<td>&nbsp;</td>
        	<td>7.10 Business/Organisation email address in the UK</td>
			<td><input type="text" name="visit_inviter_email" value="<?= @$info->visit_inviter_email?>" id="visit_inviter_email"/></td>
        </tr>
		<tr class="odd">
             <td>7.11 Do you intend to set yourself up in business in the UK?</td>
        	<td><input type="radio" name="is_visit_setup" value="1" <?= (@$info->is_visit_setup==1)?'checked':''?> />Yes 
			<input type="radio" name="is_visit_setup" value="0" <?= (@$info->is_visit_setup==0)?'checked':''?> />No</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
        <tr class="even">
            <td colspan="3">7.12 Do you have a letter of support from either a UK Government Department or an FSA-registered Venture Capitalist?</td>
        	<td colspan="2">
			<input type="radio" name="is_visit_letter" value="1" <?= (@$info->is_visit_setup==1)?'checked':''?> />Yes 
			<input type="radio" name="is_visit_letter" value="0" <?= (@$info->is_visit_setup==0)?'checked':''?> />No If yes, please confirm below which document you will be submitting as part of your application</td>
			</tr>
		<tr class="odd">
             <td>&nbsp;</td>
        	<td colspan="4">
				<input type="radio" name="is_visit_letter_from" value="1" <?= (@$info->is_visit_letter_from==1)?'checked':''?> />
				Original letter from a FSA-registered Venture Capitalist supporting your application<br />
				<input type="radio" name="is_visit_letter_from" value="2" <?= (@$info->is_visit_letter_from==2)?'checked':''?> />
        		Original letter from a UK Government Department supporting your application<br />
				<input type="radio" name="is_visit_letter_from" value="3" <?= (@$info->is_visit_letter_from==3)?'checked':''?> />
        		Original letter from one or more UK entrepreneurial seed funding competitions which is listed as endorsed on the UK Trade &amp; Investment website</td>
        	</tr>
        <tr class="even">
            <td>7.13 Please provide details of the business you intend to set up, take over, and be actively involved in running?</td>
        	<td colspan="4"><textarea name="visit_set_up"><?= @$info->visit_set_up?></textarea></td>
        	</tr>
		<tr class="odd">
             <td>7.14 What organisations will you be visiting to secure funding for your business in the UK?</td>
        	<td colspan="4"><textarea name="visit_secure_funding"><?= @$info->visit_secure_funding?></textarea></td>
        	</tr>
        <tr class="even">
            <td>7.15 What permissible activity(s) will you be undertaking in the United Kingdom?</td>
        	<td colspan="4"><textarea name="visit_activity"><?= @$info->visit_activity?></textarea></td>
        	</tr>
		<tr class="odd">
             <td>7.16.1 If you are able to secure funding to establish a business in the United Kingdom what will you do?</td>
        	<td colspan="4"><textarea name="visit_secure_funding_do"><?= @$info->visit_secure_funding_do?></textarea></td>
        	</tr>
        <tr class="even">
            <td>7.16.2 If you are unable to secure funding to establish a business in the United Kingdom what will you do?</td>
        	<td colspan="4"><textarea name="visit_secure_funding_undo"><?= @$info->visit_secure_funding_undo?></textarea></td>
        	</tr>
		<tr class="odd">
             <td>7.17 Where will you stay in the UK?</td>
        	<td colspan="4"><input type="text" name="visit_stay_place" value="<?= @$info->visit_stay_place?>" style="width:500px"/></td>
        	</tr>
        <tr class="even">
            <td colspan="5">7.18 Do you have any friends or family in the UK?  (Definition of ‘family member’ can be found in the guidance notes)</td>
        	</tr>
		<tr class="odd">
             <td>
			 <input type="radio" name="has_visit_friend" value="1" <?= (@$info->has_visit_friend==1)?'checked':''?> />Yes 
			 <input type="radio" name="has_visit_friend" value="0" <?= (@$info->has_visit_friend==0)?'checked':''?> />No If yes, please details</td>
        	<td colspan="4"><textarea name="visit_friend"><?= @$info->visit_friend?></textarea></td>
        	</tr>
        <tr class="even">
            <td colspan="3">7.19 Do you intend to visit any of these family members?</td>
        	<td><input type="radio" name="is_visit_friend" value="1" <?= (@$info->is_visit_friend==1)?'checked':''?> />Yes 
			<input type="radio" name="is_visit_friend" value="0" <?= (@$info->is_visit_friend==0)?'checked':''?> />No</td>
			<td>&nbsp;</td>
        </tr>
		<tr class="odd">
             <td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
        <tr class="even">
            <td colspan="5">&nbsp;</td>
        	</tr>
		<tr class="odd">
            <td colspan="5"><strong>Part 8 Additional Information</strong></td>
        	</tr>
        <tr class="even">
            <td>8.1 Is there any other information you wish to be considered as part of your application?</td>
        	<td colspan="4"><textarea name="additional_info"><?= @$info->additional_info?></textarea></td>
        	</tr>
		<tr class="odd">
             <td colspan="3">8.2 Have you ever received medical treatment in the UK?</td>
        	<td colspan="2">
			<input type="radio" name="is_additional_medical" value="1" <?= (@$info->is_additional_medical==1)?'checked':''?> />Yes 
			<input type="radio" name="is_additional_medical" value="0" <?= (@$info->is_additional_medical==0)?'checked':''?> />
			No If ‘Yes’ go to question 8.3</td>
			</tr>
        <tr class="even">
            <td colspan="3">8.3  Did you have to pay for the treatment?</td>
        	<td colspan="2">
			<input type="radio" name="is_additional_medical_pay" value="1" <?= (@$info->is_additional_medical_pay==1)?'checked':''?> />Yes 
			<input type="radio" name="is_additional_medical_pay" value="0" <?= (@$info->is_additional_medical_pay==0)?'checked':''?> />No</td>
			</tr>
		<tr class="odd">
             <td colspan="5">8.4 Where did you receive the treatment?</td>
        	</tr>
        <tr class="even">
            <td colspan="2" rowspan="2">Address:<br />
            	<textarea name="additional_medical_address" style="width:250px"><?= @$info->additional_medical_address?></textarea></td>
        	<td>&nbsp;</td>
        	<td>Name of hospital/clinic/Doctor’s surgery:</td>
			<td><input type="text" name="additional_medical_name" value="<?= @$info->additional_medical_name?>"/></td>
        </tr>
		<tr class="odd">
             <td>&nbsp;</td>
        	<td>Telephone number:</td>
			<td><input type="text" name="additional_medical_tel" value="<?= @$info->additional_medical_tel?>"/></td>
        </tr>
        <tr class="even">
            <td colspan="5">&nbsp;</td>
        	</tr>
		<tr class="odd">
             <td colspan="5"><strong>Part 9 Declaration</strong></td>
        	</tr>
        <tr class="even">
            <td>Applicant’s signature Date</td>
        	<td><input type="text" name="sign_date" id="sign_date" value="<?= @$info->sign_date?>"/></td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
		<tr class="odd">
             <td colspan="5">Have you used an agent or representative to complete this application?</td>
        	</tr>
        <tr class="even">
            <td colspan="5">
			<input type="radio" name="is_agent" value="1" <?= (@$info->is_agent==1)?'checked':''?> />Yes 
			<input type="radio" name="is_agent" value="0" <?= (@$info->is_agent==0)?'checked':''?> />No If ‘Yes’ please give details of  agent/representative’s name and address
            	<input type="text" name="agent_detail" value="<?= @$info->agent_detail?>" style="width:200px"/></td>
        	</tr>
		<tr class="odd">
             <td colspan="5">What language did you communicate in with the  agent/representative to complete the form?</td>
        	</tr>
        <tr class="even">
            <td colspan="5"><input type="text" name="agent_language" value="<?= @$info->agent_language?>" style="width:500px"/></td>
        </tr>
		<tr class="odd">
             <td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
        <tr class="even">
            <td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
        	<td>&nbsp;</td>
			<td>&nbsp;</td>
        </tr>
    </tbody>
	</table>
<!-- table end -->
</form>

			</div>
		</div>
		
		<?=$this->load->view('include_sidebar',array('id'=>$id,'forms'=>$forms))?>
	</div>

<script type="text/javascript">
$().ready(function() {
  $("#form").validate({
    rules: {
		visa_type:"required",
		purpose:"required",
		stays:"required",
		visit_from:"required",
		visit_to:"required",
		surname:"required",
		firstname:"required",
		sex:"required",
		birth:"required",
		marital_status:"required",
		birth_place:"required",
		birth_country:"required",
		nationality:"required",
		has_other_nationality:"required",
		passport_no:"required",
		passport_issue:"required",
		passport_expiry:"required"
    }
  });
  
	$.datepicker.setDefaults(
		{
		dateFormat: 'dd/mm/yy',
		changeMonth: true,
		changeYear: true,
		showOn: "both",
		buttonImage: "images/calendar.gif",
		buttonImageOnly: true
		}
	);
	$("#visit_from").datepicker();
	$("#visit_to").datepicker();
	$("#birth").datepicker();
	$("#passport_issue").datepicker();
	$("#passport_expiry").datepicker();
	$("#father_birth").datepicker();
	$("#mother_birth").datepicker();
	$("#spouse_birth").datepicker();
	$("#work_date").datepicker();
	$("#sign_date").datepicker();
	
	$("#email").autoMail();
	$("#work_email").autoMail();
	$("#visit_inviter_email").autoMail();
	
	$("#printInfo").click(function(o) {
		var prints = [
			{rel_id: <?=$cateid?>, rec_id: <?=$id?>}
		]  ;
		
		var jdata = JSON.stringify(prints);
		//alert(jdata);
		$.post("<?=site_url('proxy/does/'.str_replace('==','',base64_encode('http://'.$_SERVER['SERVER_NAME'].':9090/javaprduct/servlet/test')))?>",{clients:jdata},function(msg){alert(msg)});
	});
	
	$("#printInfo").ajaxError(function(event,request, settings){
		//$(this).append("<li>出错页面:" + settings.url + "</li>");
		alert("无法访问"+ settings.url );
	}); 
 
});
</script>

<?=$this->load->view('include_footer',null)?>